package thinking.generics;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Zhu Qinxiang on 2016/10/23.
 */
public class GenericsAndCovariance {
    List<? extends Fruit> flist = new ArrayList<Apple>();// 通配符引用的时明确的类型，这里无法添加任何内容
    Fruit f = flist.get(0);
}
